//
//  SystemDataViewController.m
//  JsUtilitySdkDemo_Dev
//
//  Created by Gikki Ares on 2023/6/21.
//

#import "SystemDataViewController.h"
#import <JsUtilitySdk/JsUtilitySdk.h>

@interface SystemDataViewController (){
	
	__weak IBOutlet UILabel *mLb_safeArea;
}

@end

@implementation SystemDataViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	UIEdgeInsets edgeInsets = JsGeometryManager.safeAreaInsets;
	NSString * str = NSStringFromUIEdgeInsets(edgeInsets);
	mLb_safeArea.text = str;
    // Do any additional setup after loading the view from its nib.
	__weak typeof(self) weakSelf = self;
	[JsOrientationManager addInterfaceOrientationDidChangeHandler:^(UIInterfaceOrientation o) {
		UIEdgeInsets edgeInsets = JsGeometryManager.safeAreaInsets;
		NSString * str = NSStringFromUIEdgeInsets(edgeInsets);
		__strong typeof(self)strongSelf = weakSelf;
		strongSelf->mLb_safeArea.text = str;
	}];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
